how to calculate the average atomic mass